package com.asset.dispoal.address.service.commom;

import com.asset.dispoal.address.domain.db.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommandNoParam;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Component
public class AreaQueryAllCommand implements BaseCommandNoParam<Result> {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public Result execute() {
        return Result.ok(areaMapper.queryAll());
    }
}
